package com.bw.controller;

import com.bw.entity.TbDicti;
import com.bw.entity.vo.CompanyVo;
import com.bw.service.AdmService;
import com.bw.service.DictiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@SuppressWarnings("all")
public class DictiController {
    @Autowired
    private DictiService dictiService;
    //数据字典
    @GetMapping("dictilist")
    List<TbDicti> dictilist(@RequestParam("mohu")String mohu){
        return dictiService.dictilist(mohu);
    }
    @GetMapping("companylist")
    List<CompanyVo> companylist(@RequestParam("mohu")String mohu){
        return dictiService.companylist(mohu);
    }
}
